function Login(){
	var message 	= "";
	var email 		= $('email_login').value;
	var password 	= $('password_login').value;
	if ((email == '') || (email==null))
	{
		message += msg_email_wrong;
	}
	else if ((password == '') || (password==null))
	{
		message += msg_password_wrong;
	}
	if (message!="")
		$('message').innerHTML = message;
	else
	{
		var form = xoad.html.exportForm('loginForm');
		callAJAX('xoad_handler', 'login', $H({id: 'message',form: form}), Login_callback);
	}
}

var Login_callback = function Login_callback(result) {
	$('message').innerHTML = result;
	if (result == "Log in Successfully!");
	document.location.href = (application_url+"admin");
}
